// 接口
interface IPerson {
    readonly id : number;
    name: string;
    age?: number
}

const person: IPerson = {
    id: 123,
    name: 'lxy',
}
// person.id = 234 error

